package com.ys.servers.versions.service;

import com.ys.servers.versions.data.AppType;
import com.ys.servers.versions.data.AppVersionsData;
import com.ys.servers.versions.data.AppVersionsState;
import io.vertx.codegen.annotations.Fluent;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.codegen.annotations.ProxyGen;
/**
 * Created by taotao on 2017/5/12.
 */

public interface AppVersionsService {
    /**
     * The name of the event bus service.
     */
    String SERVICE_NAME = "versions-service";

    /**
     * The address on which the service is published.
     */
    String SERVICE_ADDRESS = "service.versions";
    @Fluent
    public AppVersionsService addAppVersionsData(AppVersionsData appVersionsData, Handler<AsyncResult<AppVersionsData>> resultHandler);

    @Fluent
    public AppVersionsService getAppVersionsData(String versions, AppType appType, AppVersionsState appVersionsState,
                                                 Handler<AsyncResult<AppVersionsData>> resultHandler);

}
